package cn.rxmind.dlog.common;

import org.springframework.web.method.HandlerMethod;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * @description 定义一个函数式接口用于实现检验规则
 *
 * @author renxin
 * @email renxinzhiliangzhi@163.com
 * @date 2020/7/10 1:39 下午
 */
@FunctionalInterface
public interface NeedCollect {

    /**
     * 判断该接口是否需要被拦截
     *
     * @param handleMethod
     * @param request
     * @param properties
     * @return
     */
    boolean needCollect(HandlerMethod handleMethod, HttpServletRequest request, DLogProperties properties);

}
